﻿<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>超市进销存管理系统</title>
    <meta name="keywords" content="{$Think.config.site.keywords}">
    <meta name="description" content="{$Think.config.site.keywords}">
    <!--[if IE 6]>
    <script type="text/javascript" src="__LIB__/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
<script type="text/javascript" src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/js/jquery-2.1.0.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/app.css" />
    <style type="text/css">  
        <!--
        .pagelist {padding:10px 0; text-align:center;}
        .pagelist span,.pagelist a{ border-radius:3px; border:1px solid #dfdfdf;display:inline-block; padding:5px 12px;}
        .pagelist a{ margin:0 3px;}
        .pagelist span.current{ background:#09F; color:#FFF; border-color:#09F; margin:0 2px;}
        .pagelist a:hover{background:#09F; color:#FFF; border-color:#09F; }
        .pagelist label{ padding-left:15px; color:#999;}
        .pagelist label b{color:red; font-weight:normal; margin:0 3px;}
        .pagelist ul{overflow:hidden;text-align: center}
        .pagelist li{list-style: none;display:inline}
        html{
            height:100%;
            margin:0;
        }
        .text{
            text-align:center;
            text-align:right;
        }
        body{width:930px;margin:0px auto}
        #box{
            width:930px;
        }
        #box1{
            width:930px;
        }
        #left{
            width:150px;
            height:150px;
            background-color:blue;
            border:1px dotted;
            float:left;
        }
        #main{
            width:150px;
            height:152px;
            background-color:red;
            border:1px dotted;
        float:left

        }
        #right{
            width:150px;
            height:150px;

            border:1px dotted;
        float:left
        -->
    </style>
</head>
<body>
    <div id="box" style="margin-top:30px">
        <div style="clear:both;margin-top:0px">
            <h3><a href="/index/user/showOne?sid={$sid}" >个人信息</a></h3>
        </div>
        <h2 style="text-align: center">即将过期</h2>
    <div>
        <table border="1" cellspacing="0" cellpadding="0" style="text-align:center;margin-top:15px">
                <tr bgcolor="#88C1C8" style="height: 30px">
                    <th width='150px'>商品名称</th>
                    <th width='100px'>分类</th>
                    <th width='80px'>进价/元</th>
                    <th width='80px'>售价/元</th>
                    <th width='80px'>仓库库存</th>
                    <th width='80px'>货架库存</th>
                    <th width='120px'>有效期至</th>
                    <th width='120px'>剩余天数</th>
                    <th width='120px'>备注</th>
                </tr>
                {if isset($overdue)}
                {volist name="overdue" id="vo"}
                    <tr style="height: 40px">
                        <td>{$vo.pname}</td>
                        <td>{$vo.cname}</td>
                        <td>{$vo.pprice}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.w_stock}</td>
                        <td>{$vo.s_stock}</td>
                        <td>{$vo.until|date="Y-m-d",###}</td>
                        <td>{$vo.time}</td>
                        <td>{$vo.remarks}</td>
                    </tr>
                {/volist}
                {else /}
                <tr style="height: 40px"><td colspan="13">没有数据</td></tr>
                {/if}
        </table>
    </div>
    </div>
    <div id="box1" style="margin-top:40px">
        <h2 style="text-align: center">库存不足</h2>
    <div>
        <table border="1" cellspacing="0" cellpadding="0" style="text-align:center;margin-top:15px">
                <tr bgcolor="#88C1C8" style="height: 30px">
                    <th width='150px'>商品名称</th>
                    <th width='100px'>分类</th>
                    <th width='80px'>进价/元</th>
                    <th width='80px'>售价/元</th>
                    <th width='80px'>仓库库存</th>
                    <th width='80px'>货架库存</th>
                    <th width='120px'>供应商</th>
                    <th width='120px'>电话</th>
                    <th width='120px'>备注</th>
                </tr>
                {if isset($insufficient)}
                {volist name="insufficient" id="vo1"}
                    <tr style="height: 40px">
                        <td>{$vo1.pname}</td>
                        <td>{$vo1.cname}</td>
                        <td>{$vo1.pprice}</td>
                        <td>{$vo1.price}</td>
                        <td>{$vo1.w_stock}</td>
                        <td>{$vo1.s_stock}</td>
                        <td>{$vo1.suname}</td>
                        <td>{$vo1.mobile}</td>
                        <td>{$vo1.remarks}</td>
                    </tr>
                {/volist}
                {else /}
                <tr style="height: 40px"><td colspan="13">没有数据</td></tr>
                {/if}
        </table>
    </div>
    </div>
</body>
</html>